import 'package:flutter/material.dart';

import '../../../common/system_config.dart';
import '../../../utils/tools/screenutil_tool.dart';

class TitlePositioned extends StatelessWidget {
  // 标头字号
  TextStyle currencyFontSize = TextStyle(fontSize: SystemConfig.fs_content3);

  @override
  Widget build(BuildContext context) {
    return Positioned(
      left: ST.setw(0),
      top: ST.seth(0),
      height: ST.seth(90),
      child: Container(
        decoration: BoxDecoration(
          color: Theme.of(context).backgroundColor,
          boxShadow: [
            BoxShadow(
              offset: Offset(0, 5), //x,y轴
              color: Color.fromRGBO(0, 0, 0, .2),
              blurRadius: 8 //投影距离
            )
          ]
        ),
        child: Row(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Container(
              alignment: Alignment.center,
              width: ST.setw(160),
              child: Text("时间", style: currencyFontSize)
            ),
            Container(
              width: ST.setw(160),
              alignment: Alignment.center,
              child: Text("所属设备", style: currencyFontSize)
            ),
            Container(
              width: ST.setw(160),
              alignment: Alignment.center,
              child: Text("所属类型", style: currencyFontSize)
            ),
            Container(
              width: ST.setw(150),
              alignment: Alignment.center,
              child: Text("告警类型", style: currencyFontSize)
            ),
            Container(
              width: ST.setw(120),
              alignment: Alignment.center,
              child: Text("处理状态", style: currencyFontSize)
            )
          ],
        ),
      ),
    );
  }
}